home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / lang / c--ex101 / obj / pas_test.pas < prev   
Pascal/Delphi Source File  |  1994-07-07  |  677b  |  25 lines

  1. (*
  2.     NAME: PAS_TEST.PAS
  3.     DESCRIPTION:  This program tests the use of C-- OBJ files with Borland
  4.                   Pascal.  Besure to compile OBJTEST.C-- to an OBJ file
  5.                   before attempting to build this program.
  6.  
  7.                   This program demonstrates interfacing of both procedures
  8.                   and functions.
  9. *)
  10.  
  11. {$L OBJTEST.OBJ}
  12.  
  13.   (* The following procedure and function are defined in OBJTEST.C-- *)
  14.  
  15.     Procedure Display_Word(wordvalue : WORD); Far; External;
  16.     Function Double_It(wordvalue : WORD): WORD; Far; External;
  17.  
  18. BEGIN
  19.  
  20.   Display_Word(12345);
  21.   Display_Word( Double_It(12345) );
  22.  
  23. END.
  24.  
  25. (* end of PAS_TEST.PAS *)